package org.lyp.vo;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

/**
 * 客户实体类
 * @author DCJ
 *
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "memberinfo")
@DynamicInsert(true)
@DynamicUpdate(true)
public class Member implements java.io.Serializable {

	private int memID;
	private String memName;
	private String memRegDate;
	private String memTel;
	private String memMail;
	
	@Id
	@Column(name = "MemID", unique = true, nullable = false, length = 20)
	@GeneratedValue(generator = "generator") 
	@GenericGenerator(name = "generator", strategy = "identity") 	
	public int getMemID() {
		return memID;
	}
	public void setMemID(int memID) {
		this.memID = memID;
	}
	@Column(name = "MemName",unique = true, nullable = false, length = 40)
	public String getMemName() {
		return memName;
	}
	public void setMemName(String memName) {
		this.memName = memName;
	}
	@Column(name = "MemRegDate",nullable = false, length = 36)
	public String getMemRegDate() {
		return memRegDate;
	}
	public void setMemRegDate(String memRegDate) {
		this.memRegDate = memRegDate;
	}
	@Column(name = "MemTel",nullable = false, length = 20)
	public String getMemTel() {
		return memTel;
	}
	public void setMemTel(String memTel) {
		this.memTel = memTel;
	}
	@Column(name = "MemMail", length = 36)
	public String getMemMail() {
		return memMail;
	}
	public void setMemMail(String memMail) {
		this.memMail = memMail;
	}
}
